package com.cn.medicalcare.mapper;

import com.cn.medicalcare.pojo.AllPage;
import com.cn.medicalcare.pojo.Page;
import com.cn.medicalcare.pojo.Product;

import java.util.List;

public interface ProductMapper {

    List<Product> selectProductInPage(AllPage<Product> allPage);

    int selectProductCount(Product product);

    boolean insertProduct(Product product);

    boolean updateProduct(Product product);

    List<Product> selectProductByCateId(int cate_id, Page page);

    int selectProductCountByCateId(int cate_id);

}
